/**
 * 
 */
package com.bazaaroid.mobile.android;

import org.apache.tools.ant.taskdefs.Sleep;

import com.bazaaroid.mobile.android.adapter.ImageAdapter;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.TextView;

/**
 * @author vladimir.stankovic
 *
 */
public class InitialActivity extends Activity {

	private String TAG = "[InitialActivity]";
	
	/**
	 * 
	 */
	public InitialActivity() {
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.main);
	    
	    try
	    {
	    	Thread.sleep(3000);
	    }
	    catch(InterruptedException ie)
	    {
	    	Log.e(TAG, ie.getMessage());
	    }
	    
	    TextView tv = (TextView)findViewById(R.id.bazaaroid_intro);
	    tv.setText("Loaded!");
	    
	    //setContentView(R.layout.basic_categories);
	    Intent intent = new Intent(InitialActivity.this, CategoryView.class);
	    InitialActivity.this.startActivity(intent);
	}
}
